<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
package ${pojo.getPackageName()}.model;

import com.ling.pl.core.commons.annotation.ModelProperty;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.*;

/**
 * Created by builder
 */
@Document(collection=${declarationName}Entity.TABLE)
public class ${declarationName}Entity extends ${declarationName} {
    public static final String TABLE = "T_${declarationName?upper_case}";
    public static final String SEQ = TABLE;

    @Id
    @ModelProperty(comment = "_id")
    String id;

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
